package com.hakim.wfb.customer.service;

import com.hakim.wfb.customer.params.goods.PurchaseListParameter;
import com.hakim.wfb.customer.params.order.AddOrderParameter;
import com.hakim.wfb.customer.params.order.CancelOrderParameter;
import com.hakim.wfb.customer.result.purchase.PurchaseListView;
import com.hkfs.fundamental.api.data.ListResultEx;
import com.hkfs.fundamental.api.data.ResultEx;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by lenovo on 2017/7/3.
 */
public interface PurchaseService {


    /**
     * @param parameter
     * @return
     */
    ResultEx addOrder(AddOrderParameter parameter);

    /**
     * @param param
     * @return
     */
    ListResultEx<PurchaseListView> getChartList(PurchaseListParameter param);

    /**
     * @param parameter
     * @return
     */
    ResultEx cancelOrder(CancelOrderParameter parameter);
}
